<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>模拟Vuex-install</title>
</head>

<body>
  <div></div>
  <script>
    let Vue = null
    class Stroe {}

    function install(Vue) {
      _Vue = Vue
      _vue.minix({
        beforeCreate() {
          if (this.options.store) {
            _vue.prototype.$store = this.$options.store
          }
        }
      })
    }

    export default {
      Store,
      install
    }
  </script>
</body>

</html>